﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MusicMaker
{
    public class Note
    {
        //这个音符的音高是多少
        public int Pitch;
        //这个音符什么时候开始演奏
        public int Begin;
        //这个音符什么持续多久
        public int Time;
        //音符的力度是多大
        public int Force;

        public Note(int _pitch, int _begin, int _time, int _force)
        {
            this.Pitch = _pitch;
            this.Time = _time;
            this.Begin = _begin;
            this.Force = _force;
        }

        public Note() { }

        /*
         Note文本格式
        <pitch,begin,time,force>
         */
        public override string ToString()
        {
            return string.Format("<{},{},{},{}>", Pitch, Begin, Time, Force);
        }
    }
}
